package com.dony.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dony.shop.domain.ShopeeMerchant;
import com.dony.shop.domain.ShopeeShop;

import java.util.List;

/**
 * 授权店铺Service接口
 *
 * @author octv
 * @date 2022-03-08
 */
public interface IShopeeShopService extends IService<ShopeeShop> {


    List<ShopeeShop> getPublishShopListByMerchant(Long merchantId);

    /**
     * 通过shopID获取
     *
     * @param shopId
     * @return
     */
    ShopeeShop getByShopId(Long shopId);

    /**
     * 更新token
     *
     * @param shop
     */
    void updateToken(ShopeeShop shop);

    String selectLastRefreshToken(Long shopId);

    void setAuth(Long shopId, boolean auth);

    List<ShopeeShop> listByParam(ShopeeShop shop);

    List<ShopeeMerchant> handleShopList(List<ShopeeShop> shops);

    List<ShopeeShop> getShoplist(Long merchantId);
}
